package com.zut.blocks.base.mq;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author lxd
 * @date 2020/12/1
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Message implements Serializable {

    private String data;
    private Long date = System.currentTimeMillis();
    private MessageType type;
    private String filePath;

    public enum MessageType {
        /**
         *
         */
        str, txt, xlsx, database;

    }
}
